package com.cowcode.entity;

import java.sql.Timestamp;

public class Article {//文章
    private int aid;
    private String atext;//文章内容
    private String atitle;//标题
    private String aauthor;//作者
    private Timestamp atime;//上传时间
    private Study study;//文章语言主题  java/c

    public Article(int aid, String atext, String atitle, String aauthor, Timestamp atime, Study study) {
        this.aid = aid;
        this.atext = atext;
        this.atitle = atitle;
        this.aauthor = aauthor;
        this.atime = atime;
        this.study = study;
    }

    @Override
    public String toString() {
        return "Article{" +
                "aid=" + aid +
                ", atext='" + atext + '\'' +
                ", atitle='" + atitle + '\'' +
                ", aauthor='" + aauthor + '\'' +
                ", atime=" + atime +
                ", study=" + study +
                '}';
    }

    public Study getStudy() {
        return study;
    }

    public void setStudy(Study study) {
        this.study = study;
    }

    public Article() {
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getAtext() {
        return atext;
    }

    public void setAtext(String atext) {
        this.atext = atext;
    }

    public String getAtitle() {
        return atitle;
    }

    public void setAtitle(String atitle) {
        this.atitle = atitle;
    }

    public String getAauthor() {
        return aauthor;
    }

    public void setAauthor(String aauthor) {
        this.aauthor = aauthor;
    }

    public Timestamp getAtime() {
        return atime;
    }

    public void setAtime(Timestamp atime) {
        this.atime = atime;
    }


}
